package com.ruoyi.airspaceFlight.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 低空文件服务信息表
 * @TableName t_lowair_service_file
 */
@TableName(value ="t_lowair_service_file")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TLowairServiceFile implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "file_id",type = IdType.ASSIGN_UUID)
    private String fileId;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新者
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 文件原始名称
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 访问的url地址
     */
    @TableField(value = "url")
    private String url;

    /**
     * 业务主键id
     */
    @TableField(value = "business_id")
    private String businessId;

    /**
     * 文件大小
     */
    @TableField(value = "file_size")
    private Double fileSize;

    /**
     * 文件扩展类型
     */
    @TableField(value = "file_extension")
    private String fileExtension;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}